package com.dong.boot.controller.system.basic;

import com.dong.boot.model.Role;
import com.dong.boot.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/system/basic/role")
@RestController
public class RoleController {
    @Autowired
    RoleService roleService;
    @GetMapping("/")
    public List<Role> getAllRoles(){
        return roleService.getAllRoles();
    }
}
